Skip to content

pre-commit: Add DCO check#959

Merged
stv0g merged 1 commit into
masterfrom
pre-commit-dco
Sep 8, 2025
Merged

pre-commit: Add DCO check#959
stv0g merged 1 commit into
masterfrom
pre-commit-dco

Conversation

@pjungkamp

Copy link
Copy Markdown
Contributor

I found myself force-pushing some commits in every PR I've made, just to reword and signoff on all commits. I wrote a little prepare-commit-msg hook that appends the DCO to every commit message automatically.


You can install this hook using:

pre-commit install -t prepare-commit-msg

Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
@stv0g stv0g merged commit a12017e into master Sep 8, 2025
3 checks passed
@stv0g stv0g deleted the pre-commit-dco branch September 8, 2025 05:06
@n-eiling

n-eiling commented Sep 8, 2025

Copy link
Copy Markdown
Member

This is not a check, but it adds the sign-off automatically, right? Why don't you use format.signOff?

@stv0g

stv0g commented Sep 8, 2025

Copy link
Copy Markdown
Contributor

I believe there are many pre-commit checks which are "auto-fixing" the code.

This would be one of them. Contributors could still use format.signOff, and this "check" would boild down to no-op.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants